#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libavutil/frame.h"
#include "libavutil/pixfmt.h"

#pragma comment(lib, "lib/avcodec.lib")
#pragma comment(lib, "lib/avdevice.lib")
#pragma comment(lib, "lib/avfilter.lib")
#pragma comment(lib, "lib/avformat.lib")
#pragma comment(lib, "lib/avutil.lib")
#pragma comment(lib, "lib/swscale.lib")
#ifdef __cplusplus
};
#endif

#include <vector>

using namespace std;

struct ImageData
{
    uint32_t width;
    uint32_t height;
    uint8_t* data;
};

void captureProcess(AVFormatContext* pFormatCtx, vector<ImageData*>& vecImageDatas, int width, int height);

